home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / quartz / q1082.dms / q1082.adf / src.lzh / Fig / paintop.h < prev    next >
C/C++ Source or Header  |  1991-07-18  |  615b  |  34 lines

  1. /* 
  2.  *    FIG : Facility for Interactive Generation of figures
  3.  *
  4.  *    Copyright (c) 1985 by Supoj Sutanthavibul (supoj@sally.UTEXAS.EDU)
  5.  *      November 1985.
  6.  *
  7.  *    %W%    %G%
  8. */
  9.  
  10. #ifndef    X11
  11.  
  12. #ifdef AMIGA
  13. #define                 INV_PAINT  1
  14. #define                 MERGE        2
  15. #define                 PAINT        3
  16. #define                 ERASE        4
  17. #else
  18. #define                 INV_PAINT    (PIX_SRC ^ PIX_DST)
  19. #define                 MERGE        PIX_SRC|PIX_DST
  20. #define                 PAINT        PIX_SRC
  21. #define                 ERASE        PIX_NOT(PIX_SRC)
  22. #endif
  23. #else
  24.  
  25. #define                 INV_PAINT    GXxor
  26. #define                 MERGE        GXor
  27. #define                 PAINT        GXcopy
  28. #define                 ERASE        GXcopyInverted
  29.  
  30. #endif    X11
  31.  
  32. #define                 DRAW        1
  33. #define                 UNDRAW        0
  34.